import Vue from 'vue'
import Router from 'vue-router'

// 六大主页
import Home from '@/views/first_level_page/home/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/birthland',
      name: 'Birthland',
      component: () => import(/* webpackChunkName: "Birthland" */ './views/first_level_page/birthland/birthland.vue')
    },
    {
      path: '/consultation',
      name: 'Consultation',
      component: () => import(/* webpackChunkName: "Consultation" */ './views/first_level_page/consultation/consultation.vue')
    },
    {
      path: '/consultation_secondary/:type',
      name: 'ConsultationSecondary',
      component: () => import(/* webpackChunkName: "ConsultationSecondary" */ './views/first_level_page/consultation/consultation_secondary.vue')
    },
    {
      path: '/consultation_detail',
      name: 'Consultation_detail',
      component: () => import(/* webpackChunkName: "Consultation_detail" */ './views/first_level_page/consultation/consultation_detail')
    },
    {
      path: '/consultation-video',
      name: 'ConsultationVideo',
      component: () => import(/* webpackChunkName: "ConsultationVideo" */ './views/first_level_page/consultation/consultation-video')
    },
    {
      path: '/consultation_detail_weChatNews',
      name: 'Consultation_WeChatNews',
      component: () => import(/* webpackChunkName: "Consultation_WeChatNews" */ './views/first_level_page/consultation/consultation_detail_weChatNews')
    },
    {
      path: '/forum/:type',
      name: 'Forum',
      component: () => import(/* webpackChunkName: "Forum" */ './views/first_level_page/forum/forum.vue')
    },
    {
      path: '/forumDetails/:contentId',
      name: 'ForumDetails',
      component: () => import(/* webpackChunkName: "ForumDetails" */ './views/first_level_page/forum/forumDetails.vue')
    },
    {
      path: '/sightseeing_tour',
      name: 'Sightseeing_Tour',
      component: () => import(/* webpackChunkName: "Sightseeing_Tour" */ './views/first_level_page/sightseeing_tour/sightseeing_tour.vue')
    },
    {
      path: '/sightseeing_tour_secondary/:type',
      name: 'SightseeingTourSecondary',
      component: () => import(/* webpackChunkName: "SightseeingTourSecondary" */ './views/first_level_page/sightseeing_tour/sightseeing_tour_secondary.vue')
    },
    {
      path: '/sightseeing_tour_details',
      name: 'SightseeingTourDetails',
      component: () => import(/* webpackChunkName: "SightseeingTourDetails" */ './views/first_level_page/sightseeing_tour/sightseeing_tour_details.vue')
    },
    {
      path: '/horizontal_tab/:type',
      name: 'Horizontal',
      component: () => import(/* webpackChunkName: "Horizontal" */ './components/horizontal_tab/horizontal_tab')
    },
    {
      path: '/hotelDetail/:id/:title',
      name: 'hotelDetail',
      component: () => import(/* webpackChunkName: "hotelDetail" */ './views/hotel/detail.vue')
    }
  ]
})
